<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="jquery-3.2.1.js"></script>
    <title>Document</title>
    <style>
        .div1 {
            width: 1300px;
            margin: 20px auto;
        }
        
        img {
            position: relative;
        }
        
        .div2 {
            position: absolute;
            top: 150px;
            left: 50px;
            background-color: red
        }
        .p1{
            width: 100px;
            height: 20px;
            background-color: red;
            position: absolute;
            top: 220px;
            left: 100px;
            opacity: 0;
        }
        .p2{
            width: 100px;
            height: 20px;
            background-color: red;
            position: absolute;
            top: 220px;
            left: 600px;
            opacity: 0;
        }
        .p3{
            width: 100px;
            height: 20px;
            background-color: red;
            position: absolute;
            top: 220px;
            left: 900px;
            opacity: 0;
        }
    </style>
    <script>
        $(function() {
            var $img1 = $(".img1");
            $img1.mouseenter("click", function() {
               var p1=$(".p1");
               p1.css("opacity","1");
            });
            $img1.mouseleave("click", function() {
               var p1=$(".p1");
               p1.css("opacity","0");
            });
            var $img2 = $(".img2");
            $img2.mouseenter("click", function() {
               var p2=$(".p2");
               p2.css("opacity","1");
            });
            $img2.mouseleave("click", function() {
               var p2=$(".p2");
               p2.css("opacity","0");
            });
            var $img3 = $(".img3");
            $img3.mouseenter("click", function() {
               var p3=$(".p3");
               p3.css("opacity","1");
            });
            $img3.mouseleave("click", function() {
               var p3=$(".p3");
               p3.css("opacity","0");
            });
            

        })
    </script>
</head>

<body>
    <div>
        <img src="1.jpg" class="img1" />
        <div class="p1">我是div1</div>
        <img src="2.jpg" class="img2" />
        <div class="p2">我是div2</div>
        <img src="3.jpg" class="img3" />
        <div class="p3">我是div3</div>
    </div>
</body>

</html>